package tiandang.core.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tiandang.core.dao.ProductStockMapper;
import tiandang.core.model.ProductStock;
import tiandang.core.service.ProductStockService;

@Service
public class ProductStockServiceImpl implements ProductStockService {

  @Autowired
  private ProductStockMapper productStockMapper;

  @Override
  public ProductStock getProductStockByProductId(Integer productId) {
    return productStockMapper.selectByProductId(productId);
  }
}
